<template>
  <div class="wrap-container">
    <vue-seamless-scroll :data="listData" :class-option="classOption" class="warp">
      <ul class="item">
        <li v-for="(item, index) in listData" :key="index"><span class="title">{{item.title}}</span>
        </li>
      </ul>
    </vue-seamless-scroll>
    <i class="tip-icon"></i>
  </div>
</template>
<script>
import VueSeamlessScroll from 'vue-seamless-scroll'
export default {
  name: 'SeamlessScroll',
  components: {
    VueSeamlessScroll
  },
  data () {
    return {
      listData: [{
        'title': '邱**申请3000元已放款成功'
      }, {
        'title': '王**申请5000元已放款成功'
      }, {
        'title': '刘**申请4600元已放款成功'
      }, {
        'title': '张**申请9000元已放款成功'
      }, {
        'title': '牛**申请8000元已放款成功'
      }, {
        'title': '胡**申请10000元已放款成功'
      }]
    }
  },
  computed: {
    classOption: function () {
      return {
        step: 0.5,
        limitMoveNum: 5,
        singleHeight: 30,
        waitTime: 500,
        hoverStop: false
      }
    }
  }
}
</script>
<style scoped>
  .warp {
    height: .5rem;
    width: 100%;
    background: #E6E6E6;
    opacity: .4;
    padding: .02rem .7rem;
    overflow: hidden;
  }
  .wrap-container{
    position: relative;
  }
  .warp ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
  }

  .warp li {
    height: 30px;
    line-height: 30px;
    display: flex;
    justify-content: space-between;
    font-size: .26rem;
    color: black;
  }
  .tip-icon{
    position: absolute;
    left: .32rem;
    width: .3rem;
    height: .3rem;
    background: url("/static/img/system-sound@2x.png") no-repeat;
    background-size: .3rem .3rem;
    top: .15rem;
    z-index: 9999;
  }
</style>
